<?php

class IndexController extends My_Controller_Action {
    
    public function indexAction() {
        $this->view->contentTitle = 'Katalog ogłoszeń';
        
        $daoCategory = new Application_Model_DAO_Category();
        $cats = $daoCategory->getFullCategories();
        $this->view->offerCategories = $cats;
        
        $daoCategory = new Application_Model_DAO_CatalogCategory();
        $cats = $daoCategory->getFullCategories();
        $this->view->catalogCategories = $cats;
    }

}

